|
PHY MAKE RIGID BODY DYNAMIC SPHERE
Create a new dynamic rigid body sphere that is attached to an object.
PHY MAKE RIGID BODY DYNAMIC SPHERE ID
PHY MAKE RIGID BODY DYNAMIC SPHERE ID, material
ID
Integer
identification number of the 3D object that you want to be represented by a dynamic sphere in the simulation
material
Integer
this parameter is optional, a material can be specified if required upon creation, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its restitution
This command will simulate the aforementioned object as a sphere within the physics simulation. As an example imagine a character object on screen. When creating a rigid body sphere for this object the box will fit around this character from its head to its feet. This sphere is not displayed on screen and is used internally for the simulation as a way of representing your object. As the object will be represented by a dynamic rigid body sphere it will be affected by forces such as gravity etc.
Simulating objects within the scene as simplistic shapes allows for much faster processing and it is preferable to have objects represented by rigid body boxes and spheres where possible. After creating a rigid body sphere it will be entered into the simulation for processing. The physics simulation will then take over control of the object that was attached to the rigid body sphere. You will not be able to move this object using commands such as position object. The size of the sphere is calculated based on the size of the specified object.
No example code is provided for this command
|